package com.cust.cow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cust.cow.common.Result;
import com.cust.cow.pojo.breed;
import org.apache.ibatis.annotations.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface BreedMapper extends BaseMapper<breed> {
    @Select("select * from breed")
    public List<breed> findBreedAll();

@Insert("insert into breed(breed_name) values(#{breedName})")
    public int insertBreed(@RequestBody breed breed);

    @Delete("delete from breed where breed_name = #{breedName}")
    public int deleteBreed(String breedName);
}
